<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:p="http://primefaces.org/ui" xmlns:a="http://java.sun.com/jsf/html" xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:f="http://xmlns.jcp.org/jsf/core">    
      <h:head>
          <link rel="icon" href="images/favicon2.ico"/>
   <title>Calendar</title>
       <style type="text/css" media="screen">
        @import url('jumbotron-narrow.css');
        @import url('bootstrap.min.css');
        @import url('style.css');
    
       
        </style>
     <script src="script/ie-emulation-modes-warning.js"></script>
    
  </h:head>
    <h:body>
        <div class="container">
            
            <div class="header">
                <nav> 
                    <ul class="nav nav-pills pull-right">

                        <h:form>
                            <li role="presentation">
                            <a:commandButton class="btn btn-lg btn-primary btn-block" action="#{loginBean.logout()}" value="Logout"/></li>
                            
                        </h:form>
                    </ul>
                </nav>
                <h3 class="text-muted">MeteoCal</h3>
                
            </div>
                
            <h2 class="form-signin-heading">Welcome Back #{userBean.name}!</h2>  <br></br>
            
            <div class="jumbotron">    
                <h:form> 
                    <p:inputText placeholder="Search for Users..." class="form-control" id="search" value="#{searchBean.user.searchedUser}"/>
                <br></br>
                <a:commandButton class="btn btn-primary btn-lg" id="submit" action="#{searchBean.research()}" value="Search"/> 
                <a class="btn btn-primary btn-lg" href="NewsPage.xhtml" role="button">You have #{notificationBean.numberOfNot()} news</a>

                <br></br><br></br><br></br>

                <h:panelGrid columnClasses="value">           
                        <p:schedule id="schedule" value="#{scheduleView.eventModel}" widgetVar="myschedule" timeZone="GMT+1">
                           
                        </p:schedule>
                </h:panelGrid>
           
                       
                </h:form>
                
                <br></br>
                <a class="btn btn-primary btn-lg" href="addevent.xhtml" role="button">Add Event</a>
                <a class="btn btn-primary btn-lg" href="invitedToPage.xhtml" role="button">You have #{inviteManager.numberOfEvents(userBean.mail)} new invites</a><br></br><br></br> 
                <a class="btn btn-primary btn-lg" href="setPrivacy.xhtml" role="button">Set up your privacy</a>
         
                       
            </div>
            <footer class="footer">
                <p> Alessio Monesi - Roberto Mussini</p>
            </footer>
        </div>
        
        
 

        <style type="text/css">
            .value {
            width: 700px;
            }
        </style>
    </h:body>
</html>
